﻿using MsTestUtilities.SolutionAnalysis.Testing;
using System;

namespace MsTestUtilities.SolutionAnalysis.Assertions
{
    public class PathAssert<T> : CollectionAssertionBase<T>
    {
        public void Equals<TValue>(Func<T, TValue> memberSelector, TValue expected)
        {
            Satisfies(
                memberSelector,
                actual => actual.Equals(expected),
                b => "Not really equal " + memberSelector(b) + " and " + expected );
        }

        protected override string ElementName(T testObject)
        {
            return string.Format("Something...");
        }
    }
}
